<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title></title>
</head>

<style>
  #block {
    width: 400px;
    height: 400px;
    background-color: #69c;
    margin: 0 auto;
    transition: background-color 3s linear, height 2s linear;
  }
  #block:hover {
    background-color: red;
    height: 600px;
  }
</style>
<body>
  <div id="block"></div>
</body>
</html>
